package com.bigdata.spark.java.utils.jdbcutil;


import com.bigdata.spark.java.entity.Doctor ;
import com.bigdata.spark.java.server.dao.impl.IDoctorDao ;
import com.bigdata.spark.java.server.dao.impl.DoctorDaoImpl ;

public class jdbcTest {


    public static void main(String[] args) {
        IDoctorDao doctorDao = new DoctorDaoImpl();
        Doctor doctor = new Doctor();
        doctor.setDoctorNo("a005");
        doctor.setDoctorName("小白");
        doctor.setDoctorAge(24);
        doctor.setDoctorSex("男");
        doctor.setDoctorTel("66666668888");
        doctor.setDoctorPcard("441381199911113344");
        doctor.setSectionName("儿科");
        doctor.setDoctorEduction("本科");
        doctor.setDoctorIntroduce("是一个程序员");
        doctor.setDootorHiredate(DateUtils.getDate("2019-1-10"));
        doctorDao.add(doctor);
    }

}
